home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmStringWidth.z / XmStringWidth
Encoding:
Text File  |  2003-11-18  |  1.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSttttrrrriiiinnnnggggWWWWiiiiddddtttthhhh((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV         XXXXmmmmSSSSttttrrrriiiinnnnggggWWWWiiiiddddtttthhhh((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_S_t_r_i_n_g_W_i_d_t_h    - A compound string function that returns the
  10.       width    of the longest sequence    of text    components in a
  11.       compound string
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.       #include <Xm/Xm.h>
  15.  
  16.       Dimension XmStringWidth (ffffoooonnnnttttlllliiiisssstttt,,,, ssssttttrrrriiiinnnngggg)
  17.            _X_m_F_o_n_t_L_i_s_tffffoooonnnnttttlllliiiisssstttt;
  18.            _X_m_S_t_r_i_n_g     ssssttttrrrriiiinnnngggg;
  19.  
  20.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.       _X_m_S_t_r_i_n_g_W_i_d_t_h    returns    the width, in pixels, of the longest
  22.       sequence of text components in the provided compound string.
  23.       Separator components are used    to delimit sequences of    text
  24.       components.
  25.  
  26.       ffffoooonnnnttttlllliiiisssstttt
  27.            Specifies the font list
  28.  
  29.       ssssttttrrrriiiinnnngggg
  30.            Specifies the string
  31.  
  32.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  33.       Returns the width of the compound string.
  34.  
  35.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  36.       _X_m_S_t_r_i_n_g_C_r_e_a_t_e(_3_X).
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.